package erfgame.core.graphics.renderer;

import java.awt.Graphics;
import java.awt.Point;


import erfgame.core.entity.Entity;
import erfgame.core.graphics.renderer.render.Render;

public class RenderEntityRenderer extends AbstractEntityRenderer {

    private Render render;
    
    public RenderEntityRenderer( Render render, Entity entity ) {
        this( render, entity, new Point(0, 0), 0 );
    }
    
    public RenderEntityRenderer( Render render, Entity entity, Point grabPoint, int depth ) {
        super( render.getSize(), grabPoint, depth );
        this.setEntity(entity);
        this.render = render;
    }
    
    public void render(Graphics g, int x, int y) {
        render.render(g, x, y);
    }

	@Override
	public boolean contains(int lx, int ly) {
		return render.contains(lx, ly);
	}

    
}
